package com.fuyao.cloud.personnel.library.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fuyao.cloud.common.biz.entity.AuditableEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;


@Data
@TableName("fy_library_book_apply")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "借书申请")
public class BookApply extends AuditableEntity {
    private String cardNumber;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Long borrowerId;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String borrower;

    private Integer status;

    @TableField(exist = false)
    private List<ApplyBook> books = new ArrayList<>();
}
